{% if page.references %}
{% capture reference_block %}
## References

{% for refs in page.references %}
  {% if refs[1] %} <!-- is object -->
    1. [{{refs[1]}}]({{refs[1]}})
  {% else %} <!-- is array -->
    * [{{refs}}]({{refs}})
  {% endif %}
{% endfor %}
{% endcapture %}

{{ reference_block | markdownify }}
{% endif %}
